contains

operator fun <T> Option<T>.contains(element: T): Boolean

Tests whether the Option contains the given element.

Return

true if the element is equal to the value of this Some, or false otherwise.

Parameters

element

An element to be tested.